
import { Component } from 'react' ;

import CustomRouter from './component/CustomRouter' ;

import Plus from "./component/Plus";
import routes from "./router/index";

/**
 * 原生redux 写法
 */
import {
    HashRouter as Router,
    Route,
    Link
} from 'react-router-dom'


import {render} from 'react-dom';
import Store from "./mobx/Store";

import { observer, Provider } from 'mobx-react';

const Apps = observer(() =>(
    <Plus>
        <Router>
            <CustomRouter routers={routes} className="router-root" />
        </Router>
    </Plus>
) ) 
/**
 * 原生redux 写法
 */
const store = new Store();
render(
    <Provider store={ store }>
        <Router>
            <Route  path="/" component={Apps}></Route>
        </Router>
    </Provider>,
    document.getElementById('app')
)